package com.database.kqxs;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);        
        DBAdapter db = new DBAdapter(this);
        //---add a Province ID---
        db.open(); 
        db.insertProvince("1", "MB");
        db.close();
    }
    
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {  
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
}
